Skip to main content

motionStart

Type​

message

Summary​

Sent to the current card of the defaultStack when a motion starts

Syntax​

motionStart <pMotion>

Description​

Handle the motionStart message to perform an action when the start of a motion is detected by the device.

The motionStart message is set to the current card of the defaultStack when the start of a motion is detected by the device.

note

As of iPhoneOS 3.0 the only motion that is generated is "shake".

Parameters​

NameTypeDescription

pMotion

The type of motion detected by the device.

Examples​

on motionStart theMotion
animateDice -- starts an animtion when the user starts a motion
end motionStart

message: motionEnd, motionRelease

property: defaultStack

Compatibility and Support​

Introduced

LiveCode 4.5.2

OS

ios

android

Platforms

desktop

Thank you for your feedback!

Was this page helpful?